
local skynet = require "skynet"
require "skynet.manager"
local snax = require "skynet.snax"
local sharedata = require "skynet.sharedata"
local utils = require "utils"
local string = string

local CMD = {}

local itemmgr

local db_itemcontain
local db_item


function CMD.addItem(roleid,configId,num)
	return item
end



function CMD.init()
    itemmgr = snax.uniqueservice("itemmgr")
    db_itemcontain = sharedata.query("itemcontain")
end


skynet.start(function()
    
    skynet.dispatch("lua", function(_, session, cmd, ...)
        local f = CMD[cmd]
        if not f then
            return
        end
        if session > 0 then
            skynet.ret(skynet.pack(f(...)))
        else
            f(...)
        end
    end)

    skynet.register("itemd")
end)



